package pkg

import "regexp"

func IdCardVerify(IdCard string) bool {
	card := `^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[0-9Xx]$`
	p := regexp.MustCompile(card)
	return p.MatchString(IdCard)
}
